package uk.ac.glasgow.demosocs.users;

import java.util.HashSet;
import java.util.Set;

import uk.ac.glasgow.demosocs.Election;

public class Admin extends Voter {

	private Set<Election> mManagedElections;
	
	public Admin(String surname, String forename, String GUID, String password) {
		super(surname, forename, GUID, password);
		setRole(ADMIN);
		
		mManagedElections = new HashSet<Election>();
	}
	
	public Set<Election> getManagedElections(){
		return mManagedElections;
		
	}
	
	public void addElection(Election election){
		mManagedElections.add(election);
	}
	
	public void clearManagedElections(){
		mManagedElections.clear();
	}

}
